<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<luck.Models.luckCompany>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title>Edit</title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Edit</h2>

    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) {%>

        <fieldset>
            <legend>Fields</legend>
            <p>
                <label for="CompanyName">Name:</label>
                <%= Html.TextBox("CompanyName") %>
                <%= Html.ValidationMessage("CompanyName", "*") %>
            </p>
            <p>
                <label for="CompanyAddress">Address:</label>
                <%= Html.TextBox("CompanyAddress") %>
                <%= Html.ValidationMessage("CompanyAddress", "*") %>
            </p>
            <p>
                <label for="CompanyPhone">Phone:</label>
                <%= Html.TextBox("CompanyPhone") %>
                <%= Html.ValidationMessage("CompanyPhone", "*") %>
            </p>
            <p>
                <label for="CompanyMobile">Mobile:</label>
                <%= Html.TextBox("CompanyMobile") %>
                <%= Html.ValidationMessage("CompanyMobile", "*") %>
            </p>
            <p>
                <label for="CompanyFax">Fax:</label>
                <%= Html.TextBox("CompanyFax") %>
                <%= Html.ValidationMessage("CompanyFax", "*") %>
            </p>
            <p>
                <label for="CompanyEmail">Email:</label>
                <%= Html.TextBox("CompanyEmail") %>
                <%= Html.ValidationMessage("CompanyEmail", "*") %>
            </p>
            <p>
                <label for="CompanyImage">Image:</label>
                <input type="file" name="CompanyImage" id="CompanyImage" />
                <%= Html.ValidationMessage("CompanyImage", "*") %>
            </p>
           <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>

    <% } %>

    <div>
        <%=Html.ActionLink("Back to List", "Index") %>
    </div>

</asp:Content>

